<?php
header('Cache-Control: no-cache, must-revalidate');
header('Expires: '.DATE_RFC822);
header('Pragma: no-cache');

$cacheparams = (isset($_GET)) ? $_GET : array();
if(array_key_exists('pageinfo',$cacheparams)) { unset($cacheparams['pageinfo']); }

require_once('sis.classes.php');
require_once('sis.styles.php');
$cdate = (time() < strtotime(date("Y-m-d ".$cachetime,time()))) ? date("Y-m-d",(time()-(60*60*24))) : date("Y-m-d",time());
echo '
<div class="note" style="font-size: .9em; color: #a0a0a0;">
<p>&ldquo;Seats remaining&rdquo; numbers are current as of '.formatDate($cdate.' '.$cachetime,1).' Classes listed on this page are subject to change.</p>

<p>The following curricula have specific admissions requirements in addition to the general admission requirements:
Associate Degree in Nursing, Dental Hygiene, Emergency Medical Services &ndash; Enhanced, Emergency Medical Services &ndash; Intermediate, Phlebotomy, Practical Nursing, Surgical Technology.</p>
</div>';

echo '
<div id="search-div">
<form id="adv-search-head">
<input type="image" src="{{contentimgurl}}current-students/academic-information/class-schedule/search-head-mag-glass.png" alt="Submit Search" id="search-head-submit" />
<label for="sis-simple-search">Search Courses at LFCC:</label>
<input type="text" name="sis-simple-search" id="sis-simple-search" value="'.((isset($_GET['sis-simple-search'])) ? $_GET['sis-simple-search'] : '').'" />
<p>Want to search by course name, instructor name or course day/time? Use the <a href="#search-courses" id="adv-search-open">Advanced Search</a>.</p>
</form>
</div>';

echo '
<div id="sis-course-container">';

require_once($GLOBALS['paths']['htmlpath'].'sis-courses/course-list.php');

echo '</div>';

/* Echo the search form */
require_once('sis-course-list-search-form.php');

$js = new lfscript(array('html'=>'<script type="text/javascript" src="{{scriptsurl}}jQuery.setup/sis-course-list-search.js"></script>','location'=>str_replace($GLOBALS['paths']['siteurl'],$GLOBALS['paths']['htmlpath'],$GLOBALS['paths']['scriptsurl']).'cache/sis-course-list.cache.2010.08.26.js','save'=>true));

$pagefoot = <<<EOD
<script type="text/javascript">if(ie6 === undefined) { var ie6=0; } var gimgurl = '{{imgurl}}forms/';var htmlurl = '{{siteurl}}';var scriptsurl = '{{scriptsurl}}'; var iconurl='{{iconurl}}';</script>
<!--[if lt IE 7]><script type="text/javascript">var ie6=1;</script><![endif]-->
EOD;

$this->analytics = $pagefoot.$js->buildScriptFile(1).$this->analytics;
?>
